package edu.sctu.fengleilin.month06.day150602.RailWayStation;

/**
 * Created by user09 on 2015/6/2.
 */
public class RunMain {
    public static void main(String[] args) {
        PeopleAppbean people = new SetPeopleData().SetPeopleData().get(10);
        if (people.isCard()) {
            if (new DangerDeth(people).checkBag()) {
                System.out.println("");
            } else {
                if (new DangerDeth(people).checkWater()) {
                    System.out.println("");
                } else {
                    if (people.getMoney() > 2) {
                        System.out.println("");
                    } else {
                        new CardDeth().setPrice(10, people);
                        System.out.println("");
                    }
                    if (people.getMoney() >= new CardDeth().getPrice(
                            people.getStart(), people.getEnd())) {
                        System.out.println(""
                                + (people.getMoney() - new CardDeth().getPrice(
                                people.getStart(), people.getEnd())));
                    } else {
                        new CardDeth().setPrice(10, people);
                        System.out.println("");
                    }
                }

            }
        } else {
            System.out.println("");
            if (new DangerDeth(people).checkBag()) {
                System.out.println("");
            } else {
                if (new DangerDeth(people).checkWater()) {
                    System.out.println("");
                } else {
                    System.out.println("");
                }
            }
        }

        PeopleAppbean p = new SetPeopleData().SetPeopleData().get(0);
        ThiefSteal thiefSteal = new ThiefSteal(p);
        thiefSteal.Steal();
        PeopleAppbean p1 = new SetPeopleData().SetPeopleData().get(0);
        AbnormalCondition abnormalCondition = new AbnormalCondition(p1);
        abnormalCondition.Condition();
    }
}
